package com.example.model;

import java.math.BigDecimal;
import java.time.LocalDateTime;

public class CardInfo {
    private String cardId; // 16位卡号
    private String curId = "RMB"; // 默认值RMB
    private Integer savingId; // 外键
    private LocalDateTime openDate = LocalDateTime.now(); // 默认当前时间
    private BigDecimal openMoney;
    private BigDecimal balance;
    private String pass = "888888"; // 默认密码
    private String isReportLoss = "否"; // 默认未挂失
    private Integer customerId; // 外键

    // Getters and Setters
    public String getCardId() { return cardId; }
    public void setCardId(String cardId) { this.cardId = cardId; }

    public String getCurId() { return curId; }
    public void setCurId(String curId) { this.curId = curId; }

    public Integer getSavingId() { return savingId; }
    public void setSavingId(Integer savingId) { this.savingId = savingId; }

    public LocalDateTime getOpenDate() { return openDate; }
    public void setOpenDate(LocalDateTime openDate) { this.openDate = openDate; }

    public BigDecimal getOpenMoney() { return openMoney; }
    public void setOpenMoney(BigDecimal openMoney) { this.openMoney = openMoney; }

    public BigDecimal getBalance() { return balance; }
    public void setBalance(BigDecimal balance) { this.balance = balance; }

    public String getPass() { return pass; }
    public void setPass(String pass) { this.pass = pass; }

    public String getIsReportLoss() { return isReportLoss; }
    public void setIsReportLoss(String isReportLoss) { this.isReportLoss = isReportLoss; }

    public Integer getCustomerId() { return customerId; }
    public void setCustomerId(Integer customerId) { this.customerId = customerId; }

}